public class LazySingle {
    private LazySingle() {

    }

    private static LazySingle lazySingle;

    public LazySingle getInstance() {
        if (lazySingle == null) {
            synchronized (LazySingle.class) {
                if (lazySingle == null) {
                    lazySingle = new LazySingle();
                }
            }
        }
        return lazySingle;
    }
}
